#import "SEGCommunityBuildListModel.h"
@implementation SEGCommunityBuildListModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(instancetype)init
{
    self = [super init];
    if (self) {
        _buildId = @"";
        _name = @"";
        _sortNo = @"";
        _isUnit = @"";
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setBuildId:(NSString*)buildId{
    _buildId = [[SEGUtils ValueToString:buildId]copy];
}
- (void)setName:(NSString*)name{
    _name = [[SEGUtils ValueToString:name]copy];
}
- (void)setSortNo:(NSString *)sortNo{
    _sortNo = [[SEGUtils ValueToString:sortNo] copy];
}
- (void)setIsUnit:(NSString *)isUnit{
    _isUnit = [[SEGUtils ValueToString:isUnit] copy];
}
@end


@implementation SEGUnitByBuildIdModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(instancetype)init
{
    self = [super init];
    if (self) {
        _unitId = @"";
        _unit = @"";
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setUnitId:(NSString*)unitId{
    _unitId = [[SEGUtils ValueToString:unitId]copy];
}
- (void)setUnit:(NSString*)unit{
    _unit = [[SEGUtils ValueToString:unit]copy];
}
@end


@implementation SEGHouseByUnitModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(instancetype)init
{
    self = [super init];
    if (self) {
        _roomNo = @"";
        _houseId = @"";
        _inviteCode = @"";
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setRoomNo:(NSString*)roomNo{
    _roomNo = [[SEGUtils ValueToString:roomNo]copy];
}
- (void)setHouseId:(NSString*)houseId{
    _houseId = [[SEGUtils ValueToString:houseId]copy];
}
- (void)setInviteCode:(NSString*)inviteCode{
    _inviteCode = [[SEGUtils ValueToString:inviteCode]copy];
}
@end


